package com.parkinglot.core;

public enum ResultEnum {
    /**
     * 操作成功
     */
    SUCCESS("200", true, "操作成功"),
    /**
     * 操作失败
     */
    FAILURE("500", false, "操作失败");
    /**
     * 编码
     */
    private String code;

    /**
     * 是否成功
     */
    private boolean success;

    /**
     * 信息
     */
    private String msg;

    ResultEnum(String code, boolean success, String msg){
        this.code = code;
        this.success = success;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public boolean getSuccess(){
        return success;
    }

    public String getMsg() {
        return msg;
    }
}
